export function isEqual(obj1, obj2) {
    const keys1 = Object.keys(obj1)
    // const keys2 = Object.keys(obj2)   
    const changeKeys = []
    /*if (keys1.length !== keys2.length) {
      return false
    }  暂不考虑长度变化 */
    for (let i = 0; i < keys1.length; i++) {
      const prop = keys1[i]
      if (obj1[prop] !== obj2[prop]) {
        changeKeys.push({
            prop,
            oldValue: obj1[prop],
            newValue: obj2[prop],
            type: 'change'
        })
      }
    }   
    return changeKeys
  }